const qs=require('querystring');

module.exports=function getQueryString(query,fields){
    let newQuery=Object.assign({},query,fields);
    return qs.stringify(newQuery);
}